/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.List;
import model.Product;

/**
 *
 * @author Student
 */
public interface ProductDAO {

    public int save(Product product) throws Exception;

    public int delete(int id) throws Exception;

    public int update(Product product) throws Exception;

    public Product getProductById(int id) throws Exception;

    public List<Product> getAllProduct() throws Exception;

    public List<Product> getProductByCategory(int categoryId) throws Exception;
}
